package router

import (
	"github.com/gin-gonic/gin"
	"kamibako.ltd/go-essential/internal/controller"
	"kamibako.ltd/go-essential/utility/response"
)

func Routers() (r *gin.Engine) {
	r = gin.Default()
	r.GET("/health", func(ctx *gin.Context) {
		response.Json(ctx, 200, "OK")
	})
	apiv1 := r.Group("/api")
	{
		apiv1.GET("/auth/register", controller.User.Register)
		apiv1.GET("/user/:id", controller.User.GetUserById)
	}
	return
}